<table>
    <tbody>
        <tr>
            <td width="180px"><?php echo $form->label('SSiH.stock_in_no', 'Stock in no.'); ?></td>
            <td><?php echo $form->text('SSiH.stock_in_no'); ?></td>
        </tr>
        <tr>
            <td><?php echo $form->label('SSiH.stock_in_date', 'Stock in Date'); ?></td>
            <td>
                From
                <?php echo $form->text('SSiH.stock_in_date_start', array('size' => 10)); ?>
                To
                <?php echo $form->text('SSiH.stock_in_date_end', array('size' => 10)); ?>
            </td>
        </tr>
        <tr>
            <td><?php echo $form->label('SSiH.customer_id', 'Customer'); ?></td>
            <td><?php echo $form->select('SSiH.customer_id', $customers); ?></td>
        </tr>
        <tr>
            <td><?php echo $form->label('SSiH.site_id', 'Site'); ?></td>
            <td><?php echo $form->select('SSiH.site_id'); ?></td>
        </tr>
        <tr>
            <td><?php echo $form->label('SSiH.stock_in_by'); ?></td>
            <td><?php echo $form->text('SSiH.stock_in_by'); ?></td>
        </tr>
    </tbody>
</table>
<script>
    $j(function() {
        $j.datesearchpicker("#SSiHStockInDate");
        $j("#SSiHCustomerId").bind('change', function() {
            $j('#SSiHSiteId').requestOptions("sites/option_list", $j("#SSiHCustomerId").val());
        });
    })
</script>